linux 2.6.18: miscellaneous
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 5 Mar 2007 13:57:11 +0000 (13:57 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 5 Mar 2007 13:57:11 +0000 (13:57 +0000)
Various minor changes not fitting elsewhere and not warranting
separate patches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
linux-2.6-xen-sparse/arch/i386/Kconfig
linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S
linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c
linux-2.6-xen-sparse/arch/x86_64/Kconfig
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/system.h

index 60dff4004e88608839b1587bc26012230da0d8a2..ac98183863f62ec65ec587649efc4070ddfdc324 100644 (file)
@@ -255,7 +255,6 @@ config NR_CPUS
 config SCHED_SMT
        bool "SMT (Hyperthreading) scheduler support"
        depends on X86_HT
-       depends on !X86_XEN
        help
          SMT scheduler support improves the CPU scheduler's decision making
          when dealing with Intel Pentium 4 chips with HyperThreading at a
index ff05486f112d1f7eed6cc199627f61ed2664d152..2bd3dbfeb092df3e116dc19412c7391b54f3fc40 100644 (file)
@@ -64,9 +64,6 @@ ENTRY(startup_32)
 
        pushl %eax              # fake return address
        jmp start_kernel
-L6:
-       jmp L6                  # main should never return here, but
-                               # just in case, we know what happens.
 
 #define HYPERCALL_PAGE_OFFSET 0x1000
 .org HYPERCALL_PAGE_OFFSET
index 2225fcc962045028fa49d5589df5c8e1ab10a78a..051e5ab202c1e076b9cb18ab1507333964b8ea04 100644 (file)
@@ -605,7 +605,8 @@ struct task_struct fastcall * __switch_to(struct task_struct *prev_p, struct tas
                mcl++;
        }
 
-       if (unlikely(prev->io_bitmap_ptr || next->io_bitmap_ptr)) {
+       if (unlikely(test_tsk_thread_flag(prev_p, TIF_IO_BITMAP)
+                    || test_tsk_thread_flag(next_p, TIF_IO_BITMAP))) {
                iobmp_op.bitmap   = (char *)next->io_bitmap_ptr;
                iobmp_op.nr_ports = next->io_bitmap_ptr ? IO_BITMAP_BITS : 0;
                mcl->op      = __HYPERVISOR_physdev_op;
index ae0f21a97fd5999a9bb21802cd095389396b2293..09d6e4f926bf173cb1105352068dd70aa39cbff0 100644 (file)
@@ -450,7 +450,7 @@ config CALGARY_IOMMU
        bool "IBM Calgary IOMMU support"
        default y
        select SWIOTLB
-       depends on PCI && EXPERIMENTAL
+       depends on PCI && !X86_64_XEN && EXPERIMENTAL
        help
          Support for hardware IOMMUs in IBM's xSeries x366 and x460
          systems. Needed to run systems with more than 3GB of memory
index 40d870c3f02d2211d9f9403a017b7f53ee04bdf6..5f7e40d725d15262dd6b70963221e2ab9b0319a6 100644 (file)
@@ -226,8 +226,6 @@ extern int page_is_ram(unsigned long pagenr);
        ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
-#define __HAVE_ARCH_GATE_AREA 1
-
 #include <asm-generic/memory_model.h>
 #include <asm-generic/page.h>
 
index 55b227aa595d721df6e8228a53ba19cb964a1bda..37e8a5cc65b8e374f018b120c7c04927ec259361 100644 (file)
@@ -137,7 +137,7 @@ __asm__ __volatile__ ("movw %%dx,%1\n\t" \
 })
 
 #define write_cr4(x) \
-       __asm__ __volatile__("movl %0,%%cr4": :"r" (x));
+       __asm__ __volatile__("movl %0,%%cr4": :"r" (x))
 
 /*
  * Clear and set 'TS' bit respectively